﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace Log
{
    class Program
    {
        static void Main(string[] args)
        {
            //File.AppendAllText(@"D:\aa.txt", "错误日志:" + 123 + "\r\n");
            //File.AppendAllText(@"D:\aa.txt", "错误日志:" + 456 + "\r\n");
            //File.AppendAllText(@"D:\aa.txt", "错误日志:" + 789 + "\r\n");


            //位移测试
            //var s = 10 << 3;  //位移 相当于10*（2*2*2）=80
            //var s = 10 >> 3;  //位移 相当于10/（2*2*2）=1
            //Console.WriteLine(s);
            //var a = 0;
            //var b = 0;
            //for (var val = 0; val < 100000; val += 5)
            //{
            //    a = val << 3;
            //    b = val >> 1;
            //    Console.WriteLine("a:"+a+",b:"+b) ;
            //}

            Console.WriteLine("日志写入完成");
            Console.ReadLine();
        }

        
    }
}
